<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
  <head>
   <base href="<%=basePath%>">
    <title>工资管理系统站内信列表</title>
    <link rel="styleSheet" href="css/body.css" type="text/css" media="all" />
  </head>
  
  <body>
  	<table>
  		<caption>工资管理系统站内信列表</caption>
  		<tr>
  			<th>信息列表序号</th>
  			<th>发送者</th>
  			<th>接收者</th>
  			<th>标题</th>
  			<th>发送日期</th>
  			<th>已读</th>
  			<th>详细信息</th>
  			<th>备 注</th>
  		</tr>
  		
  		<s:iterator value="msgList" id="msg" status="status">
  		<tr onmouseout="this.bgColor='white'" onmouseover="this.bgColor='#66CCFF'">
  				<td>${msg.mid}</td>
	  			<td>${msg.sender}</td>
	  			<td>${msg.receiver}</td>
	  			<td>${msg.title}</td>
	  			<td><s:date format="yyyy-MM-dd" name="#msg.messagedate"/></td>
	  			<td>${msg.isread}</td>
	  			<td><a href="MessageActionshowMessageDetail?mid=${msg.mid}">详细</a></td>
	  			<td></td>
	  	</tr>
	  	</s:iterator>
  	</table>
  </body>
</html>